<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" id="vp" content="width=device-width, initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../../../css/mui.css">
		<link href="../../../css/style.css" rel="stylesheet" type="text/css">
		<title></title>
	</head>
	<body>
		<div id="reviseContent" class="reviseContent">
			<ul class="mui-table-view  mui-table-view-chevron showContent" style="margin-top: 0px;">
						<li class="mui-table-view-cell">
							<a id="head">
								<span id="name" class=""></span>
								<span class="">
									<input  type="text" id="inputName"/>
								</span>
							</a>
						</li>
</ul>
		</div>
    <script src="../../../js/mui.min.js "></script>
	<script src="../../../js/mui.view.js "></script>
	<script>
		mui.plusReady(function() {
			
			var name = plus.webview.currentWebview().name;
			var inputName=plus.webview.currentWebview().inputName;
			document.getElementById('name').innerHTML=name;
			document.getElementById('inputName').value=inputName;
			initNativeObjects();
		    showSoftInput();
		});
		var nativeWebview, imm, InputMethodManager;
				var initNativeObjects = function() {
					if(mui.os.android) {
						var main = plus.android.runtimeMainActivity();
						var Context = plus.android.importClass("android.content.Context");
						InputMethodManager = plus.android.importClass("android.view.inputmethod.InputMethodManager");
						imm = main.getSystemService(Context.INPUT_METHOD_SERVICE);
					} else {
						nativeWebview = plus.webview.currentWebview().nativeInstanceObject();
					}
				};
				var showSoftInput = function() {
					if(mui.os.android) {
						imm.toggleSoftInput(0, InputMethodManager.SHOW_FORCED);
					} else {
						nativeWebview.plusCallMethod({ 
							"setKeyboardDisplayRequiresUserAction": false
						});
					}
					setTimeout(function() {
						var inputElem = document.getElementById("inputName");
						inputElem.focus();
					}, 200);
				};
	</script>
	</body>
</html>
